PreviousNextTracker indexSee it online !

(304/309) 1782 - EditorConfig should create cacheDir under getPluginHome()

Whenever EditorConfig plugin starts, it creates a "cachedir" under the current working directory i started jEdit from. Now i have tons of cachedirs everywhere. It should create this cacheDir under the getPluginHome() dir of the EditPlugin API and set "usePluginHome" to true

Submitted ezust - 2014-04-15 21:06:23.853000 Assigned xuhdev
Priority 5 Labels
Status open Group
Resolution None

Comments

2014-04-15 21:11:36.566000
ezust

- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1 +1 @@
-Whenever EditorConfig plugin starts, it creates a "cachedir" under the current working directory. It should create this cacheDir under the getPluginHome() dir of the EditPlugin API and set "usePluginHome" to true
+Whenever EditorConfig plugin starts, it creates a "cachedir" under the current working directory i started jEdit from. Now i have tons of cachedirs everywhere. It should create this cacheDir under the getPluginHome() dir of the EditPlugin API and set "usePluginHome" to true

~~~~

- **Group**: -->

2014-04-15 21:26:46.593000
xuhdev

EditorConfig doesn't create any "cachedir", but Jython does. On my system, everything works fine, so I think you might have something wrong with your global Jython configuration. See [here](http://www.jython.org/archive/21/docs/registry.html#finding), the "cachedir" option and registry file location.

2014-04-17 05:23:18.128000
ezust

The instructions you linked to seem to indicate that if I create a ~/.jython file with a line like this in it:
python.cachedir=/home/ezust/.jedit/editorconfig/cachedir
Then it should create future cachedir files there. But it does not.
There is no jython.jar in my classpath, so jython can't find itself.

Are you saying that when you run a shell script of jEdit from Linux it doesn't do this for you? I can try it on another platform if you don't have access to a linux system.

2014-04-17 05:59:48.541000
xuhdev

Alan, I think you are right about the link I gave.

I currently have OS X and it works without creating any cachedir; I used to have a Linux which also didn't create such directories. It would be best if you can try a different environment.

2014-04-17 17:04:40.384000
ezust

I can reproduce this under MacOSx also, but you must make sure it is not already running in jedit server mode first, and run it from a shell script from the bash command line. When that happens, I always see a cachedir created under that directory after jEdit startup, but only if EditorConfig is installed.

Note: EditorConfig packages its own version of Jython which has nothing to do with the JythonInterpreter plugin.


2014-04-25 20:48:45.732000
xuhdev

Sorry for the delay, I thought I have replied.

Yes, I did run it from command line. I think updating the Jython version could solve this problem. Could you try to build it from the attachment?

Thanks!

editorconfig-jedit.tar.gz (77.9Kio)

2014-05-04 16:37:43.938000
ezust

I tried the version you attached.
Which problem? That of my .jython python.cachedir preferences being ignored?
If so, that problem still exists for me. I have ~/.jython file with only one line in it.
python.cachedir=/home/ezust/cachedir

and if I run my jedit shell script from any other folder, it still creates a cachedir in that location.

Personally, I'd prefer if it would override the environment of its embedded jython somehow so that it is not necessary for me to create a ~/.jython file and it would still always use the same location, and have it be somewhere under the EditPlugin.getPluginHome() directory.

2014-05-04 16:41:37.607000
ezust

Also, the fact that EditorConfig packages its own Jython and doesn't reuse the JythonInterpreter plugin makes me sad.

2014-05-04 18:24:36.226000
xuhdev

Alan, recently a pure Java EditorConfig library came out: https://github.com/editorconfig/editorconfig-core-java

After the migration, this problem should disappear, since no Jython will be used.

2014-05-04 19:49:56.521000
celticfiddler

On May 4, 2014 11:37 AM, "Alan Ezust" <ezust@users.sf.net> wrote:

> Which problem? That of my .jython python.cachedir preferences being
> ignored?
> If so, that problem still exists for me. I have ~/.jython file with only
> one line in it.
> python.cachedir=/home/ezust/cachedir
>
> and if I run my jedit shell script from any other folder, it still creates
> a cachedir in that location.
>
> Personally, I'd prefer if it would override the environment of its
> embedded jython somehow so that it is not necessary for me to create a
> ~/.jython file and it would still always use the same location, and have it
> be somewhere under the EditPlugin.getPluginHome() directory.
> ------------------------------
>
> * [plugin-bugs:#1782] <http://sourceforge.net/p/jedit/plugin-bugs/1782/>
> EditorConfig should create cacheDir under getPluginHome()*
>
> *Status:* open
> *Group:*
> *Created:* Tue Apr 15, 2014 09:06 PM UTC by Alan Ezust
> *Last Updated:* Fri Apr 25, 2014 08:48 PM UTC
> *Owner:* Hong Xu
>
> Whenever EditorConfig plugin starts, it creates a "cachedir" under the
> current working directory i started jEdit from. Now i have tons of
> cachedirs everywhere. It should create this cacheDir under the
> getPluginHome() dir of the EditPlugin API and set "usePluginHome" to true
> ------------------------------
>
> Sent from sourceforge.net because jedit-devel@lists.sourceforge.net is
> subscribed to https://sourceforge.net/p/jedit/plugin-bugs/
>
> To unsubscribe from further messages, a project admin can change settings
> at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this
> is a mailing list, you can unsubscribe from the mailing list.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> --
> -----------------------------------------------
> jEdit Developers' List
> jEdit-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>
>

2014-05-17 20:54:54.823000
xuhdev

Hi Alan and Howard,

I've updated the plugin to a [new version](https://github.com/editorconfig/editorconfig-jedit) 0.6 (check the [tag list](https://github.com/editorconfig/editorconfig-jedit/releases)), which has avoided the usage of Jython. Could you try them out and publish it on the plugin center?

Thanks!